import { Spin } from 'antd';

export default function MySpin({ loading, tip = "加载中..." }) {
    return (
        <div className={['global-loading', loading?'loading':''].join(' ')}>
            <Spin tip={tip} />
        </div>
    )
}
